<?php 
class Password_model  extends CI_Model {

	function __construct(){
        parent::__construct();
    }
    
    public function hash($pwd){
    	return md5($pwd . '*&@1)dWp'); 
    	//return md5($pwd);
    }
    
    public function validate($pwd, $realPwd){
    	return $realPwd == $this->hash($pwd); 
    }
}